if (isnil "d_player_spawn_started") then { d_player_spawn_started = false; };
if (d_player_spawn_started) exitWith {diag_log Format["(%1)[%2]: %3: %4",diag_tickTime,"player_spawn.sqf","already started",[]];};
d_player_spawn_started = true;


waitUntil {alive player};
sleep 1;
waitUntil {!dialog || !alive player};
d_player_spawn_started = false;
